﻿using System;
using System.Collections.Generic;
using System.Text;
using AppMain;

namespace BehaviorTree
{
    public class MonsterTree : BaseTree
    {
        public MonsterTree(ActionRole agent) : base(agent)
        {

        }


        protected override void initialize()
        {
            this.root = new SelectorNode();
            this.root.initNodesLength(2);

            SequenceNode node1 = new SequenceNode();
            SequenceNode node2 = new SequenceNode();

            node1.initNodesLength(2);
            node1.addNode(new BMonsterPatrolCond(this.Agent));
            node1.addNode(new BMonsterPatrolAction(this.Agent));

            node2.initNodesLength(2);
            node2.addNode(new BMonsterSayCond(this.Agent));
            node2.addNode(new BMonsterSayAction(this.Agent));

            this.root.addNode(node2);
            this.root.addNode(node1);            
        }



    }

}
